TAGs: variable triangle calculator